package com.fxc.crowd.service.api;

import com.fxc.crowd.entity.po.AdminPO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {
    void saveAdmin(AdminPO adminPO);

    List<AdminPO> getAll();

    AdminPO getAdminByLoginAcct(String loginAcct, String userPswd);

    PageInfo<AdminPO> getPageInfo(String keyword, Integer pageNum, Integer pageSize);

    void remove(Integer adminId);

    AdminPO getAdminById(Integer adminId);

    void update(AdminPO adminPO);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);

    AdminPO getAdminByLoginAcct(String username);
}
